<!DOCTYPE html>
<head>
  <title>Video Player</title>
  <link href="https://vjs.zencdn.net/7.4.1/video-js.css" rel="stylesheet">
  <script src="https://vjs.zencdn.net/ie8/ie8-version/videojs-ie8.min.js"></script>
</head>

<body>
  <video id="myvideo" class="video-js" controls data-setup="{}">
  </video>
  <button onclick="inputaddr()">Switch</button>
</body>
<script src="https://vjs.zencdn.net/7.4.1/video.js"></script>
<script>
    function inputaddr() {
	  var s=prompt("Video Address");
	  vobj.src({src:s});
	  vobj.play();
	}
	window.vobj = videojs('myvideo',{},function(){
		this.on('ended', function(){
			this.play();
		});
		inputaddr();
	});
	window.onload=function(){window.HELP_IMPROVE_VIDEOJS=false;};
</script>